package com.mitcub.panda.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.mitcub.panda.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * @项目名称: panda
 * @类名称: Admin
 * @类描述: 系统部门
 * @作者: tangloong
 * @创建时间: 2021/11/2 17:22
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("sys_dept")
public class Dept extends BaseEntity {

    private String name;
    private String leader;
    private String mobile;
    private Long pid;
    private Integer type;
    private Integer hasChild;
    private Integer sort;
    private Integer status;

    @TableField(exist = false)
    //分类
    private List<Dept> children;
}